﻿using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;

namespace 天气查询.Controllers {
	[ApiController]
	[Route("city")]
	public class CityController : ControllerBase {

		[HttpGet]
		public async Task<IActionResult> Get() {
			var file = await System.IO.File.ReadAllBytesAsync("Data/cities.json");
			return File(file, "application/json");
		}
	}
}